﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SageKing.Blazor.OpenIdService.Migrations.Template
{
    /// <inheritdoc />
    public partial class add_sort : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "OrderNo",
                table: "TenantTemplate",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SortNo",
                table: "TenantTemplate",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OrderNo",
                table: "TemplateConfig",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SortNo",
                table: "TemplateConfig",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OrderNo",
                table: "Template",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SortNo",
                table: "Template",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "OrderNo",
                table: "TenantTemplate");

            migrationBuilder.DropColumn(
                name: "SortNo",
                table: "TenantTemplate");

            migrationBuilder.DropColumn(
                name: "OrderNo",
                table: "TemplateConfig");

            migrationBuilder.DropColumn(
                name: "SortNo",
                table: "TemplateConfig");

            migrationBuilder.DropColumn(
                name: "OrderNo",
                table: "Template");

            migrationBuilder.DropColumn(
                name: "SortNo",
                table: "Template");
        }
    }
}
